Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement suggestions from joss reviewer #13

Merged
merged 13 commits into from
Nov 15, 2023
Merged

implement suggestions from joss reviewer #13

merged 13 commits into from
Nov 15, 2023

Conversation

LuisScoccola
Copy link
Collaborator

  • leading underscore convention for private attributes
  • delete unused type attributes
  • untrack notebook not used in documentation
  • small style improvements
  • <3.12 constraint to python version due to numba compatibility

@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Attention: 5 lines in your changes are missing coverage. Please review.

Comparison is base (9ced70d) 72.64% compared to head (0a76ac7) 72.61%.

❗ Current head 0a76ac7 differs from pull request most recent head 5d63548. Consider uploading reports for the commit 5d63548 to get more accurate results

Files Patch % Lines
dreimac/lenscoords.py 0.00% 3 Missing ⚠️
dreimac/complexprojectivecoords.py 66.66% 1 Missing ⚠️
dreimac/emcoords.py 95.65% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #13      +/-   ##
==========================================
- Coverage   72.64%   72.61%   -0.04%     
==========================================
  Files          10       10              
  Lines        1053     1048       -5     
  Branches      189      189              
==========================================
- Hits          765      761       -4     
+ Misses        269      268       -1     
  Partials       19       19              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

@raphaelreinauer raphaelreinauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please remove the outputs in the juyper notebook from git.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Outputs shouldn't be committed to git. It's otherwise very hard to see if the code changed ore only the outputs.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the feedback. The reason for having the outputs in the notebooks is that we are using the notebooks as documentation, so we want to have the user be able to see the output without necessarily running the notebooks. But this is most relevant for the documentation itself, which just includes the notebooks and thus requires the outputs to be there. Do you know if it is possible to have the notebooks without output in the repository, and have the documentation CI action run each cell of each notebook before compiling the documentation and putting it online?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the input here.
This doesn't quite address our workflow with the documentation, so I'd like
to request that we move on from this and leave it be for now.
Thanks,
Chris

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ctralie, I understand your perspective. However, for PR reviews, navigating through binaries takes work. Perhaps something like ReviewNB could be a solution? Just a thought.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick response. I'm curious why you'd look at the binaries directly though. Why not just look at the notebooks themselves, since github renders them?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(This tool does look nice though @raphaelreinauer. I'm just wondering if, in the interest of time, and in the interest of keeping the toolchain simpler, we can punt this issue for now)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is purely a personal preference (see the Review channel), so please consider it a suggestion to add in the future.

Reviewing a PR, I look at change logs to determine the modifications. The diff in the Jupyter Notebook has both code changes and binaries. However, the binary changes can often overshadow the code modifications, making the PR challenging to review.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another drawback of committing binaries (which could even change often like plots in Jupyter Notebooks) is that the repository size increases significantly as these files remain in the git history.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, understood, and agreed that it is a pain. I do wish that matplotlib saved svgs instead of pngs where possible in notebooks. But thank you for your flexibility here

@LuisScoccola LuisScoccola mentioned this pull request Oct 25, 2023
2 tasks
@LuisScoccola LuisScoccola merged commit 24dd323 into master Nov 15, 2023
28 of 29 checks passed
@LuisScoccola LuisScoccola deleted the review-joss branch March 4, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants